projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2aed9d1
)
AT91: fix EMAC gpio init in at91sam9260_devices.c
author
Reinhard Meyer
<
[email protected]
>
Wed, 1 Dec 2010 04:49:53 +0000
(
05:49
+0100)
committer
Reinhard Meyer
<
[email protected]
>
Tue, 7 Dec 2010 15:36:40 +0000
(16:36 +0100)
The AT91SAM9G20 BOOT ROM apparently initializes PA23 and PA24 to multi drive
(open drain). Revert this, if those pins are going to be used for MII.
Signed-off-by: Reinhard Meyer <
[email protected]
>
arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c
patch
|
blob
|
history
diff --git
a/arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c
b/arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c
index f699f4d4898cd170ea23ec5dbefb00c79e8d30e6..c1822b713d144d878922007f5774ccd277832f1a 100644
(file)
--- a/
arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c
+++ b/
arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c
@@
-204,6
+204,11
@@
void at91_macb_hw_init(void)
#else
at91_set_b_periph(AT91_PIO_PORTA, 23, 0); /* ETX2 */
at91_set_b_periph(AT91_PIO_PORTA, 24, 0); /* ETX3 */
+#if defined(CONFIG_AT91SAM9G20)
+ /* 9G20 BOOT ROM initializes those pins to multi-drive, undo that */
+ at91_set_pio_multi_drive(AT91_PIO_PORTA, 23, 0);
+ at91_set_pio_multi_drive(AT91_PIO_PORTA, 24, 0);
+#endif
#endif
at91_set_b_periph(AT91_PIO_PORTA, 22, 0); /* ETXER */
#endif